
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGImageForeground.h>
#include <OpenSG/OSGImageForegroundBase.h>
#include <OpenSG/OSGViewport.h>
#include <OpenSG/OSGDrawAction.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_ImageForeground_dump_overloads_0_2, dump, 0, 2)


}// namespace 


// Module ======================================================================
void Export_src_pyste_gen_ImageForeground()
{
    scope* osg_ImageForegroundBase_scope = new scope(
    class_< osg::ImageForegroundBase, bases< osg::Foreground > , boost::noncopyable >("ImageForegroundBase", no_init)
//        .def_readonly("ImagesFieldMask", &osg::ImageForegroundBase::ImagesFieldMask)
//        .def_readonly("PositionsFieldMask", &osg::ImageForegroundBase::PositionsFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::ImageForegroundBase::MTInfluenceMask)
        .def("getClassType", &osg::ImageForegroundBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::ImageForegroundBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::ImageForegroundBase::*)() )&osg::ImageForegroundBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::ImageForegroundBase::*)() const)&osg::ImageForegroundBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::ImageForegroundBase::getContainerSize)
        .def("getImages", (osg::ImagePtr& (osg::ImageForegroundBase::*)(const osg::UInt32) )&osg::ImageForegroundBase::getImages, return_value_policy< copy_non_const_reference >())
        //.def("getImages", (osg::MFImagePtr& (osg::ImageForegroundBase::*)() )&osg::ImageForegroundBase::getImages, return_value_policy< copy_const_reference >())
        .def("getImages", (const osg::MFImagePtr& (osg::ImageForegroundBase::*)() const)&osg::ImageForegroundBase::getImages, return_value_policy< copy_const_reference >())
        .def("getPositions", (osg::Pnt2f& (osg::ImageForegroundBase::*)(const osg::UInt32) )&osg::ImageForegroundBase::getPositions, return_value_policy< copy_non_const_reference >())
        //.def("getPositions", (osg::MFPnt2f& (osg::ImageForegroundBase::*)() )&osg::ImageForegroundBase::getPositions, return_value_policy< copy_const_reference >())
        .def("getPositions", (const osg::MFPnt2f& (osg::ImageForegroundBase::*)() const)&osg::ImageForegroundBase::getPositions, return_value_policy< copy_const_reference >())
        .def("getBinSize", &osg::ImageForegroundBase::getBinSize)
        .def("copyToBin", &osg::ImageForegroundBase::copyToBin)
        .def("copyFromBin", &osg::ImageForegroundBase::copyFromBin)
        .def("create", &osg::ImageForegroundBase::create)
        .def("createEmpty", &osg::ImageForegroundBase::createEmpty)
        .def("shallowCopy", &osg::ImageForegroundBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("NextFieldId") = (int)osg::ImageForegroundBase::NextFieldId;
    scope().attr("PositionsFieldId") = (int)osg::ImageForegroundBase::PositionsFieldId;
    scope().attr("ImagesFieldId") = (int)osg::ImageForegroundBase::ImagesFieldId;

    delete osg_ImageForegroundBase_scope;

    class_< osg::ImageForeground, bases< osg::ImageForegroundBase > , boost::noncopyable, osg::ImageForegroundRefPtr >("ImageForeground", no_init)
        .def("getClassname", &osg::ImageForeground::getClassname)
        .def("changed", &osg::ImageForeground::changed)
        .def("dump", &osg::ImageForeground::dump, osg_ImageForeground_dump_overloads_0_2())
        .def("addImage", &osg::ImageForeground::addImage)
        .def("draw", &osg::ImageForeground::draw)
        .staticmethod("getClassname")
    ;


    register_ptr_to_python<osg::ImageForegroundPtr>();
    implicitly_convertible<osg::ImageForegroundRefPtr, osg::ImageForegroundPtr>();
    implicitly_convertible<osg::ImageForegroundPtr, osg::ForegroundPtr>();
    
    def("RefPtr", &pyopensg::ToRefPtr<osg::ImageForegroundPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::ImageForegroundPtr>);
}

